"""
    Author: Chris
    Time  : 2019/12/4 20:49
    File  : paginnations.py
"""


#三个分页器类
from rest_framework.pagination import PageNumberPagination,LimitOffsetPagination,CursorPagination

class CoursePageNumberPagination(PageNumberPagination):
    #每页的条数
    page_size = 2

    # 选择哪一页的key
    page_query_param = 'page'
    # 用户自定义一页条数
    page_size_query_param = 'page_size'

    #用户自定义的最大条数
    max_page_size = 10
